package com.fy.oa.zc.task;

import com.seeyon.ctp.workflow.event.AbstractWorkflowEvent;
import com.seeyon.ctp.workflow.event.WorkflowEventData;
import com.seeyon.ctp.workflow.event.WorkflowEventResult;

public class FyOA_DisableCancel extends AbstractWorkflowEvent {
	@Override
	public WorkflowEventResult onBeforeStop(WorkflowEventData data) {
		WorkflowEventResult wer = new WorkflowEventResult("此表单不允许使用本功能");
		return wer;
	}

	@Override
	public WorkflowEventResult onBeforeCancel(WorkflowEventData data) {
		WorkflowEventResult wer = new WorkflowEventResult("此表单不允许使用本功能");
		return wer;
	}

	public String getLabel() {
		return "自定义_disableCancel";
	}

	public String getId() {
		return String.valueOf(getLabel().hashCode());
	}

}
